package dao;

import java.sql.SQLException;
import java.util.List;

import entity.ShopCar;

public interface ShopCarDao {
	/**
	 * 
	 * @param user_id 用户id
	 * @param goods_id	商品id
	 * @return
	 */
	public int insertIntoShopCar(int user_id,int goods_id) throws SQLException;
	/**
	 * 
	 * @param user_id 用户id
	 * @return 返回用户购物车中所有的商品id
	 * @throws SQLException
	 */
	public List<ShopCar> getGoodIdFromShopCar(int user_id) throws SQLException;
	/**
	 * 
	 * @param shopcar_id
	 * @return	删除商品
	 * @throws SQLException
	 */
	public int delGoodsFromShopCar(int shopcar_id) throws SQLException;
}
